<!DOCTYPE html>
<html>
<head>
    <title>发币配置类</title>
    #parse("sys/header.html")
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
        <Row :gutter="16">
            <div class="search-group">
                <i-col span="4">
                    <i-input v-model="q.name" @on-enter="query" placeholder="名称"/>
                </i-col>
                <i-button @click="query">查询</i-button>
                <i-button @click="reloadSearch">重置</i-button>
            </div>
            <div class="buttons-group">
                #if($shiro.hasPermission("incomecoinconfig:info"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;查看</i-button>
                #end
                #if($shiro.hasPermission("incomecoinconfig:save"))
                <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
                #end
                #if($shiro.hasPermission("incomecoinconfig:update"))
                <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
                #end
                #if($shiro.hasPermission("incomecoinconfig:delete"))
                <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
                #end
            </div>
        </Row>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>

    <Card v-show="!showList">
        <p slot="title">{{title}}</p>
		<i-form ref="formValidate" :model="tIncomeCoinConfig" :rules="ruleValidate" :label-width="80">
            <Form-item label="币数量" prop="value">
                <i-input v-model="tIncomeCoinConfig.value" placeholder="币数量"/>
            </Form-item>
            <Form-item label="规则" prop="rule">
                <i-input v-model="tIncomeCoinConfig.rule" placeholder="规则"/>
            </Form-item>
            <Form-item label="普通倍数" prop="multiple">
                <i-input v-model="tIncomeCoinConfig.multiple" placeholder="普通倍数"/>
            </Form-item>
            <Form-item label="状态" prop="status">
                    <Radio-group v-model="tIncomeCoinConfig.status">
                        <Radio label="0">
                            <span>关闭</span>
                        </Radio>
                        <Radio label="1">
                            <span>启用</span>
                        </Radio>
                    </Radio-group>
                </Form-item>
            </Form-item>
            <Form-item label="类型" prop="type">
                <!--<Radio-group v-model="tIncomeCoinConfig.type">-->
                    <!--<Radio label="1">-->
                        <!--<span>普通用户邀请注册</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="2">-->
                        <!--<span>普通用户运动</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="3">-->
                        <!--<span>D-one产品</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="4">-->
                        <!--<span>D-one用户运动</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="5">-->
                        <!--<span>新用户注册</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="6">-->
                        <!--<span>D-one用户邀请</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="7">-->
                        <!--<span>任务配置</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="8">-->
                        <!--<span>兑换产品</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="11">-->
                        <!--<span>普通用户运动挖矿</span>-->
                    <!--</Radio>-->
                    <!--<Radio label="12">-->
                        <!--<span>D-one用户运动挖矿</span>-->
                    <!--</Radio>-->
                <!--</Radio-group>-->
                <i-select v-model="tIncomeCoinConfig.type" >
                    <i-option :value="1">普通邀请注册增链</i-option>
                    <i-option :value="2">兑换1比1</i-option>
                    <i-option :value="3">Done产品购买后返利</i-option>
                    <i-option :value="4">兑换1比1</i-option>
                    <i-option :value="5">新用户注册</i-option>
                    <i-option :value="6">D-one邀请注册</i-option>
                    <i-option :value="7">任务配置</i-option>
                    <i-option :value="8">兑换产品</i-option>
                    <i-option :value="10">购买商城产品赠SPC</i-option>
                    <i-option :value="11">普通用户运动挖矿</i-option>
                    <i-option :value="12">D-one用户运动挖矿</i-option>
                    <i-option :value="13">SPC转账</i-option>
                    <i-option :value="14">产品奖励倍数（普通倍数=赠送能量，MAX=释放能量，满数量=团队赠送SPC）</i-option>
                    <i-option :value="15">普通用户和 D-one 每天能量释放千分之一</i-option>
                    <i-option :value="16">D-one 直接推荐 11 个 D-one能量值释放 5‰</i-option>
                    <i-option :value="17">D-one 直接推荐 111 个 D-one 能量值释放 50‰</i-option>
                    <i-option :value="18">D-one 推荐 333 个 D-one 增送城市代理商资质</i-option>
                    <i-option :value="19">普通用户推荐获得 50 能量值、奖励 30SPC、释放 20SPC;D-one10倍</i-option>
                    <i-option :value="20">普通用户推荐3个以上获得50能量值,奖励40SPC,释放30SPC;D-one10倍</i-option>
                    <i-option :value="21">每日闪兑比例</i-option>
                </i-select>
            </Form-item>
            <Form-item label="用户类型" prop="done">
                <Radio-group v-model="tIncomeCoinConfig.done">
                    <Radio label="0">
                        <span>普通用户</span>
                    </Radio>
                    <Radio label="1">
                        <span>D-one用户</span>
                    </Radio>
                </Radio-group>
            </Form-item>
            <Form-item label="最短距离" prop="minLength">
                <i-input v-model="tIncomeCoinConfig.minLength" placeholder="最短距离"/>
            </Form-item>
            <Form-item label="最长距离" prop="maxLength">
                <i-input v-model="tIncomeCoinConfig.maxLength" placeholder="最长距离"/>
            </Form-item>
            <Form-item label="最大数量" prop="maxNum">
                <i-input v-model="tIncomeCoinConfig.maxNum" placeholder="最大数量"/>
            </Form-item>
            <Form-item label="最小数量" prop="minNum">
                <i-input v-model="tIncomeCoinConfig.minNum" placeholder="最小数量"/>
            </Form-item>
            <Form-item label="满数量" prop="num">
                <i-input v-model="tIncomeCoinConfig.num" placeholder="满数量"/>
            </Form-item>
            <Form-item>
                <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
                <i-button type="warning" @click="reload" style="margin-left: 8px"/>返回</i-button>
                <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
            </Form-item>
        </i-form>
	</Card>
</div>

<script src="${rc.contextPath}/js/income/incomecoinconfig.js?_${date.systemTime}"></script>
</body>
</html>